package com.betterjr.modules.bank.entity;

import java.math.BigDecimal;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.betterjr.common.annotation.MetaData;
import com.betterjr.common.entity.BetterjrEntity;

@Access(AccessType.FIELD)
@Entity
@Table(name = "t_bank_city_no")
public class BankCityNo implements BetterjrEntity {

    /** 
     * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么) 
     */
    private static final long serialVersionUID = -7346176932653896966L;

    /**
     * 城市代码
     */
    @Column(name = "CITY_CODE", columnDefinition = "VARCHAR")
    @MetaData(value = "城市代码", comments = "城市代码")
    private String cityCode;

    /**
     * 城市名称
     */
    @Column(name = "CITY", columnDefinition = "VARCHAR")
    @MetaData(value = "城市名称", comments = "城市名称")
    private String cityName;

    /**
     * 城市名称
     */
    @Column(name = "PROVINCE", columnDefinition = "VARCHAR")
    @MetaData(value = "省名称", comments = "省名称")
    private String provinceName;

    /**
     * 
     */
    @Column(name = "VALID_SIGN", columnDefinition = "VARCHAR")
    @MetaData(value = "", comments = "")
    private String validSign;

    /**
     * 
     */
    @Column(name = "SIMPLE_WRITE", columnDefinition = "VARCHAR")
    @MetaData(value = "", comments = "")
    private String simpleWrite;

    /**
     * 
     */
    @Column(name = "REVERSE1", columnDefinition = "VARCHAR")
    @MetaData(value = "", comments = "")
    private String reverse1;

    /**
     * 
     */
    @Column(name = "REVERSE2", columnDefinition = "VARCHAR")
    @MetaData(value = "", comments = "")
    private String reverse2;

    /**
     * 
     */
    @Column(name = "REVERSE3", columnDefinition = "VARCHAR")
    @MetaData(value = "", comments = "")
    private String reverse3;

    /**
     * 
     */
    @Column(name = "REVERSE4", columnDefinition = "VARCHAR")
    @MetaData(value = "", comments = "")
    private String reverse4;

    /**
     * 
     */
    @Column(name = "REVERSE5", columnDefinition = "VARCHAR")
    @MetaData(value = "", comments = "")
    private String reverse5;

    /**
     * 
     */
    @Column(name = "REVERSE6", columnDefinition = "DECIMAL")
    @MetaData(value = "", comments = "")
    private BigDecimal reverse6;

    /**
     * 
     */
    @Column(name = "REVERSE7", columnDefinition = "DECIMAL")
    @MetaData(value = "", comments = "")
    private BigDecimal reverse7;

    /**
     * 
     */
    @Column(name = "REVERSE8", columnDefinition = "DECIMAL")
    @MetaData(value = "", comments = "")
    private BigDecimal reverse8;

    /**
     * 
     */
    @Column(name = "REVERSE9", columnDefinition = "DECIMAL")
    @MetaData(value = "", comments = "")
    private BigDecimal reverse9;

    /**
     * 
     */
    @Column(name = "REVERSE10", columnDefinition = "DECIMAL")
    @MetaData(value = "", comments = "")
    private BigDecimal reverse10;

    /**
     * 
     */
    @Column(name = "PB_SCALE_CODE", columnDefinition = "VARCHAR")
    @MetaData(value = "", comments = "")
    private String pbScaleCode;

    /**
     * 
     */
    @Column(name = "CITY_ID", columnDefinition = "DECIMAL")
    @MetaData(value = "", comments = "")
    private BigDecimal cityId;

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String anCityCode) {
        cityCode = anCityCode;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String anCityName) {
        cityName = anCityName;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String anProvinceName) {
        provinceName = anProvinceName;
    }

    public String getValidSign() {
        return validSign;
    }

    public void setValidSign(String anValidSign) {
        validSign = anValidSign;
    }

    public String getSimpleWrite() {
        return simpleWrite;
    }

    public void setSimpleWrite(String anSimpleWrite) {
        simpleWrite = anSimpleWrite;
    }

    public String getReverse1() {
        return reverse1;
    }

    public void setReverse1(String anReverse1) {
        reverse1 = anReverse1;
    }

    public String getReverse2() {
        return reverse2;
    }

    public void setReverse2(String anReverse2) {
        reverse2 = anReverse2;
    }

    public String getReverse3() {
        return reverse3;
    }

    public void setReverse3(String anReverse3) {
        reverse3 = anReverse3;
    }

    public String getReverse4() {
        return reverse4;
    }

    public void setReverse4(String anReverse4) {
        reverse4 = anReverse4;
    }

    public String getReverse5() {
        return reverse5;
    }

    public void setReverse5(String anReverse5) {
        reverse5 = anReverse5;
    }

    public BigDecimal getReverse6() {
        return reverse6;
    }

    public void setReverse6(BigDecimal anReverse6) {
        reverse6 = anReverse6;
    }

    public BigDecimal getReverse7() {
        return reverse7;
    }

    public void setReverse7(BigDecimal anReverse7) {
        reverse7 = anReverse7;
    }

    public BigDecimal getReverse8() {
        return reverse8;
    }

    public void setReverse8(BigDecimal anReverse8) {
        reverse8 = anReverse8;
    }

    public BigDecimal getReverse9() {
        return reverse9;
    }

    public void setReverse9(BigDecimal anReverse9) {
        reverse9 = anReverse9;
    }

    public BigDecimal getReverse10() {
        return reverse10;
    }

    public void setReverse10(BigDecimal anReverse10) {
        reverse10 = anReverse10;
    }

    public String getPbScaleCode() {
        return pbScaleCode;
    }

    public void setPbScaleCode(String anPbScaleCode) {
        pbScaleCode = anPbScaleCode;
    }

    public BigDecimal getCityId() {
        return cityId;
    }

    public void setCityId(BigDecimal anCityId) {
        cityId = anCityId;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + (cityCode == null ? 0 : cityCode.hashCode());
        result = prime * result + (cityId == null ? 0 : cityId.hashCode());
        result = prime * result + (cityName == null ? 0 : cityName.hashCode());
        result = prime * result + (pbScaleCode == null ? 0 : pbScaleCode.hashCode());
        result = prime * result + (provinceName == null ? 0 : provinceName.hashCode());
        result = prime * result + (reverse1 == null ? 0 : reverse1.hashCode());
        result = prime * result + (reverse10 == null ? 0 : reverse10.hashCode());
        result = prime * result + (reverse2 == null ? 0 : reverse2.hashCode());
        result = prime * result + (reverse3 == null ? 0 : reverse3.hashCode());
        result = prime * result + (reverse4 == null ? 0 : reverse4.hashCode());
        result = prime * result + (reverse5 == null ? 0 : reverse5.hashCode());
        result = prime * result + (reverse6 == null ? 0 : reverse6.hashCode());
        result = prime * result + (reverse7 == null ? 0 : reverse7.hashCode());
        result = prime * result + (reverse8 == null ? 0 : reverse8.hashCode());
        result = prime * result + (reverse9 == null ? 0 : reverse9.hashCode());
        result = prime * result + (simpleWrite == null ? 0 : simpleWrite.hashCode());
        result = prime * result + (validSign == null ? 0 : validSign.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        final BankCityNo other = (BankCityNo) obj;
        if (cityCode == null) {
            if (other.cityCode != null) return false;
        } else if (!cityCode.equals(other.cityCode)) return false;
        if (cityId == null) {
            if (other.cityId != null) return false;
        } else if (!cityId.equals(other.cityId)) return false;
        if (cityName == null) {
            if (other.cityName != null) return false;
        } else if (!cityName.equals(other.cityName)) return false;
        if (pbScaleCode == null) {
            if (other.pbScaleCode != null) return false;
        } else if (!pbScaleCode.equals(other.pbScaleCode)) return false;
        if (provinceName == null) {
            if (other.provinceName != null) return false;
        } else if (!provinceName.equals(other.provinceName)) return false;
        if (reverse1 == null) {
            if (other.reverse1 != null) return false;
        } else if (!reverse1.equals(other.reverse1)) return false;
        if (reverse10 == null) {
            if (other.reverse10 != null) return false;
        } else if (!reverse10.equals(other.reverse10)) return false;
        if (reverse2 == null) {
            if (other.reverse2 != null) return false;
        } else if (!reverse2.equals(other.reverse2)) return false;
        if (reverse3 == null) {
            if (other.reverse3 != null) return false;
        } else if (!reverse3.equals(other.reverse3)) return false;
        if (reverse4 == null) {
            if (other.reverse4 != null) return false;
        } else if (!reverse4.equals(other.reverse4)) return false;
        if (reverse5 == null) {
            if (other.reverse5 != null) return false;
        } else if (!reverse5.equals(other.reverse5)) return false;
        if (reverse6 == null) {
            if (other.reverse6 != null) return false;
        } else if (!reverse6.equals(other.reverse6)) return false;
        if (reverse7 == null) {
            if (other.reverse7 != null) return false;
        } else if (!reverse7.equals(other.reverse7)) return false;
        if (reverse8 == null) {
            if (other.reverse8 != null) return false;
        } else if (!reverse8.equals(other.reverse8)) return false;
        if (reverse9 == null) {
            if (other.reverse9 != null) return false;
        } else if (!reverse9.equals(other.reverse9)) return false;
        if (simpleWrite == null) {
            if (other.simpleWrite != null) return false;
        } else if (!simpleWrite.equals(other.simpleWrite)) return false;
        if (validSign == null) {
            if (other.validSign != null) return false;
        } else if (!validSign.equals(other.validSign)) return false;
        return true;
    }

    @Override
    public String toString() {
        return "BankCityNo [cityCode=" + cityCode + ", cityName=" + cityName + ", provinceName=" + provinceName
                + ", validSign=" + validSign + ", simpleWrite=" + simpleWrite + ", reverse1=" + reverse1 + ", reverse2="
                + reverse2 + ", reverse3=" + reverse3 + ", reverse4=" + reverse4 + ", reverse5=" + reverse5
                + ", reverse6=" + reverse6 + ", reverse7=" + reverse7 + ", reverse8=" + reverse8 + ", reverse9="
                + reverse9 + ", reverse10=" + reverse10 + ", pbScaleCode=" + pbScaleCode + ", cityId=" + cityId + "]";
    }
}
